<template>
	<view class="my-container">
		<!-- 登录组件 -->
		<my-login v-if="!token"></my-login>
		
		<!-- 用户信息组件 -->
		<my-user-info v-else></my-user-info>
	</view>
</template>

<script>
	import { mapState } from 'vuex'
	import tabbarBadge from '@/mixins/tabbar-badge'
	export default {
		mixins: [tabbarBadge],
		computed: {
			...mapState('user',['token'])
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss">
page, .my-container {
	height: 100%;
}
</style>
